Package MusicLandscape.util.formatters
Class MyCSVTrackFormatter
- java.lang.Object
-
- MusicLandscape.util.formatters.MyTrackFormatter
-
- MusicLandscape.util.formatters.MyCSVTrackFormatter
-
public class MyCSVTrackFormatter extends MyTrackFormatter
This class represents the concept of csv-formatting of a track.- Since:
- ExerciseSheet04
- Version:
- 1
- Author:
- Jonas Altrock (ew20b126@technikum-wien.at)
-
-
Constructor Summary
Constructors Constructor Description MyCSVTrackFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringformat(Track t)Creates a CSV format of a track.
-
-
-
Method Detail
-
format
public java.lang.String format(Track t)
Creates a CSV format of a track.The csv representation of a track is "title","performer","writer","year","duration"; (without quotes)
No new line is added at the end of the String!- Specified by:
formatin classMyTrackFormatter- Parameters:
t- the track to be formatted- Returns:
- the formatted String representing the track
-
-